package com.atguigu.realtime.common;

/**
 * @author chenlongStart
 * @create 2021-06-25 11:59
 * @desc
 */
public class Constant {
    public static final String PHOENIX_DRIVER = "org.apache.phoenix.jdbc.PhoenixDriver";
    public static final String PHOENIX_URL = "jdbc:phoenix:hadoop162,hadoop163,hadoop164:2181";
    public static final String MYSQL_DRIVER = "com.mysql.cj.jdbc.Driver";
    public static final String MYSQL_URL = "jdbc:mysql://hadoop162:3306/gmall2021?user=root&password=aaaaaa";
    public static final String CLICKHOUSE_DRIVER = "ru.yandex.clickhouse.ClickHouseDriver";
    public static final String CLICKHOUSE_URL_PRE = "jdbc:clickhouse://hadoop162:8123/";

    //ods层 topic
    public static final String TOPIC_ODS_LOG = "ods_log";
    public static final String TOPIC_ODS_DB = "ods_db";

    //dwd层 topic
    public static final String TOPIC_DWD_START_LOG = "dwd_start_log";
    public static final String TOPIC_DWD_PAGE_LOG = "dwd_page_log";
    public static final String TOPIC_DWD_DISPLAY_LOG = "dwd_display_log";
    public static final String TOPIC_DWD_ORDER_DETAIL = "dwd_order_detail";
    public static final String TOPIC_DWD_ORDER_INFO = "dwd_order_info";
    public static final String TOPIC_DWD_PAYMENT_INFO = "dwd_payment_info";
    public static final String TOPIC_DWD_CART_INFO = "dwd_cart_info";
    public static final String TOPIC_DWD_FAVOR_INFO = "dwd_favor_info";
    public static final String TOPIC_DWD_COMMENT_INFO = "dwd_comment_info";
    public static final String TOPIC_DWD_ORDER_REFUND_INFO = "dwd_order_refund_info";

    //dim层 table name
    public static final String DIM_USER_INFO = "DIM_USER_INFO";
    public static final String DIM_BASE_PROVINCE = "DIM_BASE_PROVINCE";
    public static final String DIM_SKU_INFO = "DIM_SKU_INFO";
    public static final String DIM_SPU_INFO = "DIM_SPU_INFO";
    public static final String DIM_BASE_CATEGORY3 = "DIM_BASE_CATEGORY3";
    public static final String DIM_BASE_TRADEMARK = "DIM_BASE_TRADEMARK";

    //dwm层 topic
    public static final String TOPIC_DWM_UV = "dwm_uv";
    public static final String TOPIC_DWM_USER_JUMP_DETAIL = "dwm_user_jump_detail";
    public static final String TOPIC_DWM_ORDER_WIDE = "dwm_order_wide";
    public static final String TOPIC_DWM_PAYMENT_WIDE = "dwm_payment_wide";

    public static final String TOPIC_DWS_PRODUCT_STATS = "dws_product_stats";

    //时间相关
    public static final long REDIS_WAIT_TIME = 60 * 1000;
    public static final int DIM_EXPIRE_SECOND = 24 * 60 * 60;


    //其他
    public static final String FOUR_STAR_GOOD_COMMENT = "1204";
    public static final String FIVE_STAR_GOOD_COMMENT = "1205";
}
